package com.example.blog.service;

import com.example.blog.vo.Result;
import com.example.blog.vo.param.LoginParams;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface LoginService {
    /**
     * 登录
     * @param loginParams
     * @return
     */
    Result login(LoginParams loginParams);

    /**
     * 退出登录
     * @param token
     * @return
     */
    Result logout(String token);

    /**
     * 用户注册
     * @param loginParams
     * @return
     */
    Result register(LoginParams loginParams);


}
